package org.thinkinbunny.financial.util;

import org.thinkinbunny.financial.activity.MyActivity;
import org.thinkinbunny.financial.activity.MyApplication;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;



public class MiscToolBox extends MyActivity{


    public static void saveShowNotice(boolean isShow)
    {
    	String name = "name";
		SharedPreferences pref =  MyApplication.getInstance().getSharedPreferences (Constant.FILE_SHARE, Context.MODE_PRIVATE);
               	Editor ed = pref.edit();
               	ed.putBoolean(name, isShow);
               	ed.commit();
    }
	
    public static boolean isShowNotice()
    {
    	String name = "name";
		SharedPreferences pref = MyApplication.getInstance().getSharedPreferences (Constant.FILE_SHARE, Context.MODE_PRIVATE);
		boolean isShow =  pref.getBoolean(name, true);
        return isShow;
    }
}
